package HomeWork.ooday02;

public class Doctor extends Person{
    String title;
    Doctor(String name,String address, int age, String title){
        super(name,address,age);
        this.title=title;
    }
    void cut(){
        System.out.println(name+"正在做手术...");
    }
    void sayHi(){
        System.out.println("我的名字是"+name+"，我今年"+age+"岁了，我的职称是："+title);
    }
}
